package auction.model;

import java.util.*;

/**
 * Misunderstand the meaning of two one-to-many make the many-to-many association
 * 
 * @author Wei Sun
 *
 */
@Deprecated
public class Item2OneToMany{
	private Long id;
	private String title;
	
	private Set<Category2OneToMany> cats=new HashSet<Category2OneToMany>();
	
	public Item2OneToMany(){
	}
	
	public Item2OneToMany(String t){
		title=t;
	}
	
	public Long getId(){
		return id;
	}
	public void setId(Long i){
		id=i;
	}
	
	public void setCats(Set<Category2OneToMany> i){
		cats=i;
	}
	public Set<Category2OneToMany> getCats(){
		return cats;
	}
	
	public void setTitle(String i){
		title=i;
	}
	public String getTitle(){
		return title;
	}
}